package day1115_2;

import javax.swing.*;
import java.awt.*;

public class W2 {
    public static void main(String[] args) {
        JFrame  win=new JFrame("斗地主");//1.
        win.setLayout( new BorderLayout() );//2.

        //窗口的西边添加一个 west按钮
        win.add(  BorderLayout.WEST  ,  new JButton("west"));//3.
        win.add(  BorderLayout.CENTER  ,new JButton("center"));
        win.add(  BorderLayout.EAST  ,new JButton("east"));
        win.add(  BorderLayout.NORTH  ,new JButton("north"));

        win.setSize(800,900);    //窗口.设置可见性 为true (窗口显示)
        win.setVisible(true);//  visible 可见//win.setVisible(true)
    }
}
